package com.example.springbatchdemo.springlistener;

import org.springframework.context.ApplicationListener;

/**
 * @Classname Mylistener
 * @Description 定义监听器
 * @Date 2020/10/8 10:14
 * @Created by kevin
 */
public class Mylistener implements ApplicationListener<MyEvent> {
    @Override
    public void onApplicationEvent( MyEvent event ) {
        System.out.println("我开始监听" + event.getClass());
    }
}
